<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * @property bool $solely 独家合作:1=是,2=否
 * @property bool $status 状态:1=待审核,2=待签署合同,3=驳回,4=等待排期,5=等待上线,6=上线
 * @property int $deletetime
 * @property int $id
 * @property int $num 剧集集数
 * @property int $user_id 用户
 * @property string $content 剧集简介
 * @property string $contract 合同
 * @property string $copyrightimages 版权声明
 * @property string $createtime
 * @property string $horizontalimage 横版海报
 * @property string $involveimages 无涉声明
 * @property string $name 剧集名称
 * @property string $portraitimages 肖像授权
 * @property string $reason 驳回原因
 * @property string $solelyimages 独家授权签署
 * @property string $style_ids 剧集类型
 * @property string $updatetime
 * @property string $verticalimage 竖版海报
 * @property-read \app\model\TvCrew[] $crew
 * @property-read \app\model\TvFiles[] $files
 * @method static \think\db\Query onlyTrashed()
 * @method static \think\db\Query withTrashed()
 * @mixin \think\Model
 */
class Tv extends Model
{
	use SoftDelete;
	protected $createTime = 'createtime';
	protected $updateTime = 'updatetime';
	protected $deleteTime = 'deletetime';
	
	function crew()
	{
		return $this->hasMany(TvCrew::class,'tv_id');
	}
	
	function files()
	{
		return $this->hasMany(TvFiles::class,'tv_id');
	}
}
